<template>
<div>
  <h1>Test View</h1>
  <img src="../assets/logo.png">
  <img :src="img">
</div>
</template>

<script>
// import img from '../assets/logo.png';

export default {
  name: "TestView",
  data() {
    return{
      img: ''
    }
  },
  mounted() {
    // 动态导入图片
    import('../assets/logo.png').then(module => {
      this.img = module.default;
    });
  }
}
</script>

<style scoped>

</style>